import { createApp } from 'vue'
// import App from './App.vue'
import App from '@/App.vue'
import ElementPlus from 'element-plus'
// import 'element-plus/dist/index.css'import 'element - plus/dist/index.css'。
import 'element-plus/dist/index.css'

//@ts-ignore
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import '@/styles/index.scss'
import router from './router'
import pinia from './store'
import 'virtual:svg-icons-register'
//引入自定义插件对象，注册整个项目全局组件
import globalComponent from '@/components/index'
const app = createApp(App)
app.use(ElementPlus, {
  locale: zhCn,
})
app.use(globalComponent)
app.use(pinia)
app.use(router)
app.mount('#app')
